home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2527 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.gate.net!pslfl2-35
  2. From: bhutto@gate.net (William Hutto)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Problems with inline asm in Borland C
  5. Date: 21 Jan 1996 13:53:04 GMT
  6. Organization: CyberGate, Inc.
  7. Message-ID: <4dtgg0$21r4@news.gate.net>
  8. References: <4dsn6j$snb@blaze.cs.jhu.edu>
  9. NNTP-Posting-Host: pslfl2-35.gate.net
  10. X-Newsreader: News Xpress Version 1.0 Beta #4
  11.  
  12. In article <4dsn6j$snb@blaze.cs.jhu.edu>,
  13.    vincie@circle.cs.jhu.edu (Michael Ko) spake:
  14. ;Keywords: 
  15. ;I just have a quick question concerning using inline assembler operators
  16. ;in Borland C++ 3.0. I'm trying to plot pixels into the graphics memory
  17. ;area. However, the assembly code seems to alter either the code of the
  18. ;program or values in variables. I've removed the inline assembly and the
  19. ;code is fine (but doesn't plot, obviously). If I use inline codes,
  20. ;does Borland C automatically save registers and restore them after the
  21. ;asm codes? I assume that Borland C does not use the video memory for
  22. ;code and data segments. Thanks for any help.
  23.  
  24. Inline assembly is a compiler specific subject. You need to consult your 
  25. compiler documentation to find out whether/what regs need to be saved.
  26.  
  27. Bill
  28.  
  29. "Whatcha got on?...Your mind?"
  30.